package org.huzhp.gateway.dynamic;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

/**
 * @Description: 网关配置类
 * @Author: huzp
 * @CreateDate: 2020/3/20 12:18
 * @Version: 1.0
 */

@Configuration
public class GatewayConsoleConfig {

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate(new SimpleClientHttpRequestFactory());
    }

    @Bean
    public ConsoleProperties consoleProperties() {
        return new ConsoleProperties();
    }
}
